package cn.plushine.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(description = "销售订单")
public class SOrder {
    @ApiModelProperty(value = "销售订单编号")
    private String id;
    // 日期格式化
    @ApiModelProperty(value = "日期")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date date;
    @ApiModelProperty(value = "销售员信息")
    private String salesperson;
    @ApiModelProperty(value = "客户信息")
    private int customer;
    @ApiModelProperty(value = "客户姓名")
    private String customerName;
    @ApiModelProperty(value = "销售订单记录")
    private List<SOrderItem> sOrders;
    @ApiModelProperty(value = "货物种类")
    private int size;
    @ApiModelProperty(value = "货物总数")
    private int sum;
    @ApiModelProperty(value = "购货总价")
    private BigDecimal total;
    @ApiModelProperty(value = "订单状态")
    private int flags;
    @ApiModelProperty(value = "出库订单编号")
    private String outputId;
    // 日期格式化
    @ApiModelProperty(value = "出库日期")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date outputDate;
    @ApiModelProperty(value = "仓库保管员信息")
    private String keeper;
}
